﻿using FaceDetectiveWindowsService;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace ConsoleApplicationService
{
    class Program
    {
        static FaceDetectiveWindowsService.Policy.PolicyServer _policyServer = null;

        static FaceDeteiveHelper _faceDeteiveHelper = new FaceDeteiveHelper();
        static void Main(string[] args)
        {
            if (_policyServer == null)
            {
                _policyServer = new FaceDetectiveWindowsService.Policy.PolicyServer(@"clientaccesspolicy.xml");
            }
            _faceDeteiveHelper.Init();
            _faceDeteiveHelper.Start();

            while (true)
            {
                Thread.Sleep(1000000000);
            }
            
        }
    }
}
